package day0303;

public class MyDequeTest {

    public static void main(String[] args) {
        MyDeque myDeque = new MyDeque(4);

        myDeque.add("aaa");
        myDeque.add("bbb");
        myDeque.add("ccc");
        myDeque.add("ddd");

        myDeque.addFirst("eee");

        System.out.println(myDeque.size());
//
//        System.out.println(myDeque.peekFirst());
//        System.out.println(myDeque.peekLast());

        System.out.println(myDeque.poolFirst());
        System.out.println(myDeque.size());

    }
}
